package cn.teleus.common.exception;


public enum AuthErrorCode implements BaseErrorCode {

    /**
     * 错误代码：不支持的请求Method
     */
    Method_Not_Support(LC_SERVICE, "9001"),
    /**
     * 错误代码：Payload方式无效
     */
    Payload_invalid(LC_SERVICE, "9002"),
    /**
     * 错误代码：验证错误
     */
    Bad_Credentials(LC_SERVICE, "9003"),
    /**
     * 错误代码：token过期
     */
    Credentials_Expired(LC_SERVICE, "9004"),
    /**
     * 错误代码：无权限
     */
    Authentication_Failed(LC_SERVICE, "9005");

    private String levelCode;
    private String exceptionCode;

    AuthErrorCode(String level, String exception) {
        this.levelCode = level;
        this.exceptionCode = exception;
    }

    @Override
    public String toCode() {
        return this.levelCode + MC_TELEUS_MAS + this.exceptionCode;
    }
}
